package com.jiayou.authention

import java.io.Serializable

/**
 *@author lishuang
 *@data   2021-04-23  16:40:20
 *@info   认证处理器
 */
@FunctionalInterface
interface AuthenticateHandler<T1 : Serializable, T2 : Serializable> {
    /**
     *做认证
     * @param principals 身份
     * @param evidence    凭证
     * @return 认证结果
     */
    fun doAuthenticate(principals: T1, evidence: T2): Boolean = true
}
